package com.RLFZ.controller;

import com.RLFZ.entity.NocvGlobalData;
import com.RLFZ.service.NocvGlobalDataService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 服务控制器
 *
 * @author zh
 * @since 2022-08-25 17:16:58
 * @description 
 */
@Slf4j
@RequiredArgsConstructor
@Controller
//@RequestMapping("/nocvGlobalData")
public class NocvGlobalDataController {

    @Autowired
    private NocvGlobalDataService nocvGlobalDataService;

    @RequestMapping("/queryGlobal")
    @ResponseBody
    public List<NocvGlobalData> queryGlobal() {
        List<NocvGlobalData> list = nocvGlobalDataService.list();
        return list;
    }


}